package com.itheima.service.impl;

import com.itheima.exception.SystemException;

import java.sql.SQLException;

public class UserServlceImpl {

    public void save(){
        try {
            throw new SQLException();
        } catch (SQLException e) {
            //将出现的异常包装进对应的异常类中(这里包装成系统异常类)
            throw new SystemException("数据库连接超时!",e);
        }
    }
}
